package com.example.xlzx.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 预约表
 * </p>
 *
 * @author 1
 * @since 2025-03-07
 */
@Data
@TableName("appointment")
@ApiModel(value="Appointment对象", description="预约表")
public class Appointment extends BaseEntity  {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "预约 ID，主键，自增")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户 ID，外键")
    private Long userId;

    @ApiModelProperty(value = "医生 ID，外键")
    private Long doctorId;

    @ApiModelProperty(value = "预约时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime appointTime;

    @ApiModelProperty(value = "状态（0=待确认，1=已确认）")
    private Integer status;



}
